package com.h3c.nem.config;



import com.h3c.nem.service.CommService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class NemAppInitRunner implements ApplicationRunner {

    @Autowired
    CommService commService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        commService.initData();
    }
}
